{% include values.inc %}

{% comment %}
If this a docs page, include the docs values and check if the page should be "noindex"ed
{% endcomment %}

{% assign url = page.url | split: '/' %}
{% if url.size > 1 and url[1] == "docs" %}
{% include values_docs.inc %}
{% endif %}

<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />

    {% if currentVersion and latestVersion and currentVersion != latestVersion %}
    <meta name="robots" content="noindex">
    {% endif %}

    <title>{{ page.doctitle | default: "Rook" | escape }}</title>

    <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">

    {% include favicon.html %}

    <link href="//fonts.googleapis.com/css?family=Montserrat:500|Open+Sans:300,400,600" rel="stylesheet">
    {% if page.asciinema %}
      <link rel="stylesheet" type="text/css" href="{{ "/css/asciinema-player.css?v2.6.1" | relative_url }}" />
    {% endif %}
    <link rel="stylesheet" href="{{ "/css/main.css" | relative_url }}">
    {% if page.stylesheet %}
      <link rel="stylesheet" href="{{ "/css/" | append: page.stylesheet | append: ".css" | relative_url }}" />
    {% endif %}
  </head>
  <body>
    {% include navigation.html %}
    <main id="content" aria-label="Content"><div>{{ content }}</div></main>
    {% include footer.html %}
    {% if jekyll.environment == 'production' and site.google_analytics %}
      {% include google-analytics.html %}
    {% endif %}
  </body>
</html>
